package api

import (
	"github.com/gin-gonic/gin"
	"im/api/handler"
)

func Route(r *gin.Engine) {
	r.GET("show", handler.Show)
	r.GET("friendList", handler.List)
	r.POST("friendAdd", handler.Add)
	chatHandler := handler.NewChatHandler()
	chat := r.Group("/api")
	chat.GET("chat", chatHandler.Chat)
}
